package top.hzy520.security;

import org.springframework.security.authentication.AbstractAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;

import java.util.Collection;

/**
 * @Author: HouZeYu
 * @Description:
 * @Date: Created in 15:54 2018/7/8
 */
public class TokenAuthentication extends AbstractAuthenticationToken {
    public TokenAuthentication(Collection<? extends GrantedAuthority> authorities) {
        super(authorities);
    }
    @Override
    public Object getCredentials() {
        return null;
    }
    @Override
    public Object getPrincipal() {
        return null;
    }
}
